package com.itchu.system.service;

import com.itchu.common.domain.PageResult;
import com.itchu.system.domain.Song;
import com.itchu.system.domain.User;

import java.util.List;

public interface UserService {
    PageResult<User> findByPage(String key, Integer page, Integer rows, String sortBy, Boolean desc);

//    void addUser(User user);

    void deletUser(Long id);

    User updateUser(User user);

    Boolean checkNameAndPhone(Long type, String value);

    void sendCode(String phone);

    Boolean register(User user, String code);

    User login(String username, String password);

    void uploadSong(Song song,Long userId, List<Long> cids);


    List<Song> getUploadSongByUId(Long userId);

}
